import request from '@/util/request'

export default {
    // 1. 查询所有学生
    findTbs() {
        return request({
            url: '/TbSpecification/list.do',
            method: 'get',
        })
    },

    // 2. 分页查询学生
    findByPage(page, pageSize) {
        return request({
            url: `/TbSpecification/findByPage.do?page=${page}&pageSize=${pageSize}`,
            method: 'get',
        })
    },

    search(page,pageSize,data){
        return request({
            url: `/TbSpecification/search.do?page=${page}&pageSize=${pageSize}`,
            method: 'post',
            data
        })
    },

    save(data){
        return request({
            url: `/TbSpecification/save.do`,
            method: 'post',
            data
        })
    }
}